package com.example.questionexam.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.questionexam.model.dto.teacher.TeacherQueryRequest;
import com.example.questionexam.model.entity.Teacher;

/**
 * @author cola
 * @description 针对表【(tb_teacher)】的数据库操作Service
 * @createDate 2024-05-27 19:27:21
 */
public interface TeacherService extends IService<Teacher> {

    QueryWrapper<Teacher> getQueryWrapper(TeacherQueryRequest teacherQueryRequest);
    /**
     * 校验参数
     * @param teacher
     * @param isAdd
     */
    void validTeacher(Teacher teacher, boolean isAdd);

    /**
     * 删除卷子
     * @param teacher_ids
     * @return
     */
    boolean removeTeacher(Long[] teacher_ids);

}